package game.ability;

import game.entity.AbsSprite;
import game.shared.Constants;

public class AbilityLostHP extends AbsAbility{

	float hpLost;
	public AbilityLostHP(int id, float hpLost, AbsSprite targetSprite) {
		super(id);
		this.hpLost = hpLost;
		this.setTarget(targetSprite);
	}

	public void action() {
		Constants.HP -= hpLost;
//		for(int i=0; i<targetSprites.count(); i++)
//		{
//		AbsSprite target = targetSprites.getByIndex(i);
//			target.setHp(target.getHp()-hpLost);
//		}
	};
}
